//
//  SDP_ActivityIndicatorView.m
//  SDP_AVMoviePlayer
//
//  Created by sp on 16/3/25.
//  Copyright © 2016年 sp. All rights reserved.
//

#import "SDP_ActivityIndicatorView.h"

#define WIDTH  [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height



@implementation SDP_ActivityIndicatorView


- (id)initWithFrame:(CGRect)frame{
    
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        // 菊花背景的大小
        //        self.frame = CGRectMake(kWidth/2-50, KHeight/2-50, 100, 100);
        
        // 菊花的背景色
        self.backgroundColor = [UIColor clearColor];
        self.layer.cornerRadius = 10;
        
        // 菊花的颜色和格式（白色、白色大、灰色）
        self.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
        
        // 在菊花下面添加文字
        UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(10, 60, 80, 40)];
        label.text = @"loading...";
        label.font = [UIFont systemFontOfSize:14];
        label.textAlignment = NSTextAlignmentCenter;
        label.textColor = [UIColor whiteColor];
        [self addSubview:label];
        
    }
    return  self;
}









@end
